﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data {
    /// <summary>
    /// 集市订单
    /// </summary>
   public class TokenBazaarOrder {
        public long Id { get; set; }
        /// <summary>
        /// 买家用户id
        /// </summary>
        public long BuyId { get; set; }
        /// <summary>
        /// 卖家用户id
        /// </summary>
        public long SellerId { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }
       /// <summary>
       /// 商品id
       /// </summary>
        public long ProductId { get; set; }
        /// <summary>
        /// 订单价格
        /// </summary>
        public decimal Price { get; set; }
       /// <summary>
       ///  发货方式 0 邮寄 1 自提
       /// </summary>
        public int ShippingType { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public EBazaarOrderStatus Status { get; set; }
        /// <summary>
        /// 订单完成时间
        /// </summary>
        public long? FinishTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public long UpdateTime { get; set; }
        /// <summary>
        /// 买家是否已删除
        /// </summary>
        public bool IsBuyDel { get; set; }
        /// <summary>
        /// 卖家是否已删除
        /// </summary>
        public bool IsSellDel { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        public virtual TokenBazaarProduct TokenBazaarProduct { get; set; }
        public virtual Merchant SellerMerchant { get; set; }
        public virtual Merchant BuyMerchant { get; set; }
        public virtual TokenShipping TokenShipping { get; set; }
    }
}
